﻿namespace HiMap.Style
{
    using HiMap.Base;
    using System;
    using System.Text;

    public class PointSymbolBmpClass : PointSymbolClass, IPointSymbolBmp, IPointSymbol, IHiMapPtr
    {
        public PointSymbolBmpClass(StringBuilder bmpname)
        {
            base.m_InPtr = VC.KWG_POINTSYMBOLBMP_CREATE(bmpname);
            base.m_Used = false;
        }

        public PointSymbolBmpClass(int InPtr, bool Used)
        {
            base.m_InPtr = InPtr;
            base.m_Used = Used;
        }

        public string BmpName
        {
            get
            {
                StringBuilder bmpname = new StringBuilder(0x100);
                if (VC.KWG_POINTSYMBOLBMP_GET_BMPNAME(base.m_InPtr, bmpname))
                {
                    return bmpname.ToString();
                }
                return "";
            }
        }

        public int height
        {
            get
            {
                return VC.KWG_POINTSYMBOLBMP_GET_HEIGHT(base.m_InPtr);
            }
            set
            {
                VC.KWG_POINTSYMBOLBMP_SET_HEIGHT(base.m_InPtr, value);
            }
        }

        public int OriginalHeight
        {
            get
            {
                return VC.KWG_POINTSYMBOLBMP_GET_ORIGINALHEIGHT(base.m_InPtr);
            }
        }

        public int OriginalWidth
        {
            get
            {
                return VC.KWG_POINTSYMBOLBMP_GET_ORIGINALWIDTH(base.m_InPtr);
            }
        }

        public int Width
        {
            get
            {
                return VC.KWG_POINTSYMBOLBMP_GET_WIDTH(base.m_InPtr);
            }
            set
            {
                VC.KWG_POINTSYMBOLBMP_SET_WIDTH(base.m_InPtr, value);
            }
        }
    }
}

